package cn.xyh.model;

import cn.xyh.util.BaseUtil;

import java.util.Date;
import java.util.List;

public class User extends BaseUtil implements java.io.Serializable {


    private static final long serialVersionUID = -1482509576822386565L;
    /**
     * 表名：td_sys_user
     * 类型：bigint
     *
     * @author:yxc 对应的数据库字段名：id
     */


    private Long id;
    /**
     * 表名：td_sys_user
     * 类型：varchar
     *
     * @author:yxc 对应的数据库字段名：login_name
     */


    private String loginName;
    /**
     * 表名：td_sys_user
     * 类型：varchar
     *
     * @author:yxc 对应的数据库字段名：mobile
     */


    private String mobile;
    /**
     * 表名：td_sys_user
     * 类型：varchar
     *
     * @author:yxc 对应的数据库字段名：email
     */


    private String email;
    /**
     * 表名：td_sys_user
     * 类型：datetime
     *
     * @author:yxc 对应的数据库字段名：create_time
     */


    private Date createTime;
    /**
     * 表名：td_sys_user
     * 类型：tinyint
     *
     * @author:yxc 对应的数据库字段名：sex
     */


    private Integer sex;
    /**
     * 表名：td_sys_user
     * 类型：tinyint
     *
     * @author:yxc 对应的数据库字段名：status
     */


    private Integer status;
    /**
     * 表名：td_sys_user
     * 类型：varchar
     *
     * @author:yxc 对应的数据库字段名：password
     */


    private String password;
    /**
     * 表名：td_sys_user
     * 类型：varchar
     *
     * @author:yxc 对应的数据库字段名：remark
     */


    private String remark;
    /**
     * 表名：td_sys_user
     * 类型：datetime
     *
     * @author:yxc 对应的数据库字段名：update_time
     */


    private Date updateTime;

    public List<Long> roleList;

    public List<Long> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<Long> roleList) {
        this.roleList = roleList;
    }

    public User() {
    }

    public User(User vo) {

        this.password = vo.getPassword();
        this.status = vo.getStatus();
        this.email = vo.getEmail();
        this.sex = vo.getSex();
        this.loginName = vo.getLoginName();
        this.mobile = vo.getMobile();

    }

    private Date lastLoginTime;

    public User(String username, List<Long> roleList) {
        this.loginName = username;
        this.roleList = roleList;
    }


    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLoginName() {
        return this.loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getMobile() {
        return this.mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getSex() {
        return this.sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getStatus() {
        return this.status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }
}
